<!-- templates/main/performance_result.html -->
{% extends "main/base.html" %}

{% block title %}业绩查询结果{% endblock %}

{% block content %}
    <h1>业绩查询结果</h1>
    <p>查询时段: {{ start_date }} 至 {{ end_date }}</p>
    
    <table class="table table-striped">
        <thead>
            <tr>
                <th>店铺名称</th>
                <th>总业绩(元)</th>
            </tr>
        </thead>
        <tbody>
            {% for store in performance_data %}
            <tr>
                <td>{{ store.shop_name }}</td>
                <td>{{ "%.2f"|format(store.total_amount) }}</td>
            </tr>
            {% else %}
            <tr>
                <td colspan="2">没有找到相关数据</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    
    <a href="{{ url_for('main.performance') }}" class="btn btn-secondary">返回重新查询</a>
{% endblock %}